﻿using BaseData.CommonLib.Models;
using Swimj.CommonLib.Base;

namespace BaseData.RazorLib.Services;

public interface ISaleOrderService
{
    Task<PaginatedResult<SaleOrderInfoResponseDto>?> QuerySaleOrdersByPage(SaleOrderSearchRequestDto model);
        
    Task<Result<SaleOrderInfoResponseDto>?> CreateSaleOrder(SaleOrderEditRequestDto editRequestDto);
        
    Task<Result<SaleOrderInfoResponseDto>?> GetSaleOrder(int? key);

    Task<Result<SaleOrderInfoResponseDto>?> UpdateSaleOrder(int id, SaleOrderEditRequestDto editRequestDto);
}